<!DOCTYPE html>
<html>
<head>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/common/mytags.jsp"%>
<title>单位信息</title>
<t:base type="jquery,dataTables"></t:base>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- extend -->
<script type="text/javascript">
/*
$(function(){
	
	//var url = 'sys/ClientWork/find?enable=0&clientId=' + parent._param_client_id;
	//_set_default_lable_text(url);
	
		$('#enterprise').dataTable({
			"bProcessing" : true, //DataTables载入数据时，是否显示‘进度’提示
	        "bServerSide" : true, //是否启动服务器端数据导入
	        "bStateSave" : false, //是否打开客户端状态记录功能,此功能在ajax刷新纪录的时候不会将个性化设定回复为初始化状态
	        "bJQueryUI" : true, //是否使用 jQury的UI theme
	        "aLengthMenu" : [5, 10, 15], //更改显示记录数选项
	        "iDisplayLength" : 10, //默认显示的记录数
	        "bAutoWidth" : true, //是否自适应宽度 update\
	        "bScrollCollapse" : false, //是否开启DataTables的高度自适应，当数据条数不够分页数据条数的时候，插件高度是否随数据条数而改变
	        "bPaginate" : false, //是否显示（应用）分页器
	        "bInfo" : true, //是否显示页脚信息，DataTables插件左下角显示记录数
	        "sPaginationType" : "full_numbers", //详细分页组，可以支持直接跳转到某页
	        "bSort" : true, //是否启动各个字段的排序功能
	        "aaSorting" : [[1, "DESC"]], //默认的排序方式，第3列，升序排列
	        "bFilter" : false, //是否启动过滤、搜索功能
	        "sPaginationType": "full_numbers",
		    "sAjaxSource":"sys/ClientWork/list",
	        "fnServerData":retrieveData,  //自定义数据获取函数
			"aoColumns" : [ {
				"mDataProp" : "workCompany",
				"sTitle" : "单位名称",
				"bSortable": true,
				"sDefaultContent" : "",
				"sClass" : "center",
				"sWidth":"150px"
			}, {
				"mDataProp" : "workAddress",
				"sTitle" : "单位地址",
				"sDefaultContent" : "",
				"sClass" : "center",
				"sWidth":"100px"
			}, {
				"mDataProp" : "workProperty",
				"sTitle" : "单位性质",
				"sDefaultContent" : "",
				"sClass" : "center",
				"sWidth":"100px",
				"mRender": function (data, display, row) {
					  if(!data){
						  return "";
					  }
				      return  top.SYS_BASE_DATA['Client_Work_Property_Code'][data];
					}
			}, {
				"mDataProp" : "workCategory",
				"sTitle" : "行业类别",
				"sDefaultContent" : "",
				"sClass" : "center",
				"sWidth":"100px",
				"mRender": function (data, display, row) {
					  if(!data){
						  return "";
					  }
				      return top.SYS_BASE_DATA['Client_Work_Category_Code'][data];
					}
			},
			{
				"mDataProp" : "workLicense",
				"sTitle" : "营业执照",
				"sDefaultContent" : "",
				"sClass" : "center",
				"sWidth":"100px"
			}, 
			{
				"mDataProp" : "workTel",
				"sTitle" : "单位电话",
				"sDefaultContent" : "",
				"sClass" : "center",
				"sWidth":"100px"
			},
			{
				"mDataProp" : "id",
				"sTitle" : "操作",
				"sDefaultContent" : "",
				"sClass" : "center",
				"sWidth":"100px",
				"mRender": function (data, display, row) {
					return top._set_default_href(row.id,top._local_default_query_opt);
					}
			}
			
			],
			"oLanguage": {
	            "sUrl":"static_resources/language/lang-cn.txt" //这个是国际化，也就是汉化的各种文字数据源，写对url就行了
	        }
		});
	
	
	});
	
var default_query = function(id){
		var aData = $('#enterprise').dataTable().fnGetData();
		$.each(aData,function(index,node){
			if(node.id==id){
				//$('#_form_default').form('load',node);
				_set_default_lable_text('',true,node);
				return;
			}
		});
};

	var gotoBack = function(){
		top._do_goto_right('jsp/loan/applyLoanList_.jsp');
	};
	//自定义数据获取函数
	var retrieveData = function( sSource, aoData, fnCallback ) {
		       aoData.push({name:'beanProxy[enable]',value:0});
		       aoData.push({name:'beanProxy[clientId]',value:parent._param_client_id});
		        $.ajax( {
		                type: "POST", 
		                url: sSource, 
		                cache : false,
		                dataType : "json",
		                data : aoData, 
		                success: function(resp) {
		                	if(resp && resp.state == 200){
		                		fnCallback(resp.datagrid);
		                		return false;
		                	}
		                	fnCallback(null);
		            }
		        });
	};
	*/
	$(function(){
		
		var url = 'sys/ClientWork/find?enable=0&clientId=' + parent._param_client_id;
		_set_default_lable_text(url,true);
		});
		var gotoBack = function(){
			top._do_goto_right('jsp/loan/applyLoanList_.jsp');
		};
</script>
</head>
<body>
<div class="formbody">
	<!-- 
	<div class="formtitle"><span>单位信息列表</span></div>
	<table cellpadding="0" cellspacing="0" border="0" class="tablelist" id="enterprise" width="100%"></table>
	 -->
		
	<div id="client_work">
		<div class="formtitle"><span>单位信息</span></div>
		<form id="" name="">
			<ul class="forminfo">
		    	<li>
		    		<table class="newtablelist" id="">
				        <tbody>
					        <tr>
						        <td class="newtd">单位名称</td>
						        <td colspan="5"><span name="workCompany"></span>&nbsp;</td>
						    </tr>
						    <tr>
						        <td class="newtd">单位地址</td>
						        <td colspan="5"><span name="workAddress"></span>&nbsp;</td>
						    </tr>
						    <tr>
						        <td class="newtd">部门</td>
						        <td><span name="workDept"></span>&nbsp;</td>
						        <td class="newtd">职务</td>
						        <td><span name="workPosition"></span>&nbsp;</td>
						        <td class="newtd">单位电话</td>
						        <td><span name="workTel"></span>&nbsp;</td>
						    </tr>
						    <tr>
						        <td class="newtd">单位性质</td>
						        <td><span name="workProperty@Client_Work_Property_Code"></span>&nbsp;</td>
						        <td class="newtd">主营业务</td>
						        <td  colspan="3"><span name="workBusiness"></span>&nbsp;</td>
						    </tr>
						    <tr>
						        <td class="newtd">营业执照</td>
						        <td><span name="workLicense"></span>&nbsp;</td>
						        <td class="newtd">组织机构代码</td>
						        <td><span name="workOrganization"></span>&nbsp;</td>
						        <td class="newtd">注册资金（万元）</td>
						        <td><span name="workRegCapital"></span>&nbsp;</td>
						    </tr>
						    <tr>
						        <td class="newtd">经营场地面积（㎡）</td>
						        <td><span name="workFloorSpace"></span>&nbsp;</td>
						        <td class="newtd">经营场所</td>
						        <td><span name="workPlaceType@Client_Work_Place_Type_Code"></span>&nbsp;</td>
						        <td class="newtd">租金/月供（元）</td>
						        <td><span name="workRent"></span>&nbsp;</td>
						    </tr>
						    <tr>
						        <td class="newtd">成立日期</td>
						        <td><span name="workEstablishDate@[yyyy-MM-dd]"></span>&nbsp;</td>
						        <td class="newtd">员工人数（人）</td>
						        <td><span name="workPersonNum"></span>&nbsp;</td>
						        <td class="newtd">实际资金（万元）</td>
						        <td><span name="workRealCapital"></span>&nbsp;</td>
						    </tr>
						    <tr>
						        <td class="newtd">股东数（个）</td>
						        <td><span name="workStockholder"></span>&nbsp;</td>
						        <td class="newtd">所占股份（%）</td>
						        <td><span name="workStock"></span>&nbsp;</td>
						        <td class="newtd">公司资产（万元）</td>
						        <td><span name="workAsset"></span>&nbsp;</td>
						    </tr>
						    <tr>
						        <td class="newtd">行业类别</td>
						        <td><span name="workCategory@Client_Work_Category_Code"></span>&nbsp;</td>
						        <td class="newtd">年营业额（万元）</td>
						        <td><span name="workYearTurnover"></span>&nbsp;</td>
						        <td class="newtd">毛利率（%）</td>
						        <td><span name="workInterestRate"></span>&nbsp;</td>
						    </tr>
						    <tr>
						        <td class="newtd">公司现值（万元）</td>
						        <td><span name="workValue"></span>&nbsp;</td>
						        <td class="newtd">管理人员</td>
						        <td><span name="workManager"></span>&nbsp;</td>
						        <td class="newtd">手机</td>
						        <td><span name="workManagerPhone"></span>&nbsp;</td>
						    </tr>
						     <tr>
						        <td class="newtd">任职部门</td>
						        <td><span name="workManagerDept"></span>&nbsp;</td>
						        <td class="newtd">单位电话</td>
						        <td colspan="3"><span name="workManagerTel"></span>&nbsp;</td>
						    </tr>
						</tbody>
					</table>
		    	</li>
		    	<li><input name="" type="button"  onclick="history.go(-1);" class="scbtn" value="返回"/></li>	    	
		    </ul>
		</form>
	    </div>
	</div>
</body>
</html>
